﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;

namespace PUCP.SI2.SGIRP.DA
{
    class coneccion2
    {
        private static String server = "localhost";
        private static String user = "root";
        private static String password = "";
        private static String database = "BD_SGIRP";

        public MySqlConnection getInstance()
        {
            string connectionString;
            connectionString = "SERVER=" + server + ";" + "DATABASE=" +
            database + ";" + "UID=" + user + ";" + "PASSWORD=" + password + ";";
            MySqlConnection conn = new MySqlConnection(connectionString);
            return conn;
        }
    }
}
